package com.leji.song.httpInterface;


public class HttpInterface {
		
	public static  String WEB_ADDRESS = "http://115.29.109.14:8081/LjsApp/";


    //1.1.1.	验证会员手机号是否已注册
    public static class HIF_CheckIfRegist{
		public static  String address = WEB_ADDRESS + "rest/check";
		
		public class params{
			public static final String phone = "phone";
		}

	}

    //1.1.2.	获取下发手机验证码
    public static class HIF_GetCheckCode{
		public static  String address = WEB_ADDRESS + "rest/getCaptcha";

		public class params{
			public static final String phone = "phone";
		}

	}


    //1.1.3.	会员注册
    public static class HIF_Regist{
		public static  String address = WEB_ADDRESS + "rest/register";

		public class params{
			public static final String phone = "phone";
			public static final String captcha = "captcha";
		}

	}


    //1.1.4.	会员登录
    public static class HIF_LoginIn{
        public static  String address = WEB_ADDRESS + "rest/login";

        public class params{
            public static final String phone = "phone";
        }

    }


    //1.1.5.	获取主页横幅宣传图片
    public static class HIF_GetBanner{
		public static  String address = WEB_ADDRESS + "rest/banner";

		public class params{
			public static final String size = "size";
		}

	}

    //1.1.5.	获取商家列表
    public static class HIF_GetShop{
		public static  String address = WEB_ADDRESS + "rest/shops";

        /*
        size	数字	不必须	数目，默认是20个
        no	数字	不必须	分页时的第几页
        type	字符	不必须	口味（商家类别）id，多口味时用逗号”,”隔开
        name	字符	不必须	检索名称或地址
        distance	整形数字	不必须	搜索范围数字，单位米
        x	数字	不必须	当前会员的地理x坐标（百度地图x坐标）
        y	数字	不必须	当前会员的地理y坐标（百度地图y坐标）
        */

        public class params{
			public static final String size = "size";
			public static final String no = "no";
			public static final String type = "type";
			public static final String name = "name";
			public static final String distance = "distance";
			public static final String x = "x";
			public static final String y = "y";
		}

	}

    //1.1.7.	获取商家类别列表(即口味列表)
    public static class HIF_GetkouWeiList{
        public static  String address = WEB_ADDRESS + "rest/shopsTypes";

    }

    //1.1.8.	查看商家详情
    public static class HIF_GetShopDetail{
        public static  String address = WEB_ADDRESS + "rest/shopsInfo";

        public class params{

            public static final String shopsId = "shopsId";
        }
    }

    //1.1.9.	商家评论列表
    public static class HIF_GetShopComment{
        public static  String address = WEB_ADDRESS + "rest/comments";

        public class params{

            public static final String shopsId = "shopsId";
            public static final String size = "size";
            public static final String no = "no";
        }
    }


    //1.1.10.	商家商品列表
    public static class HIF_GetShopMenu{
        public static  String address = WEB_ADDRESS + "rest/goods";

        public class params{

            public static final String shopsId = "shopsId";
            public static final String size = "size";
            public static final String no = "no";
            public static final String type = "type";
        }
    }

    //1.1.11.	商家商品分类列表
    public static class HIF_GetShopGoodsType{
        public static  String address = WEB_ADDRESS + "rest/goodsTypes";

        public class params{

            public static final String shopsId = "shopsId";
        }
    }




    //1.1.12.	水果配送分类列表
    public static class HIF_GetFruitTypes{
        public static  String address = WEB_ADDRESS + "rest/goodsFruitTypes";
    }



    //1.1.13.	水果配送商品列表
    public static class HIF_GetFruitList{
        public static  String address = WEB_ADDRESS + "rest/goodsFruit";

        public class params{

            public static final String size = "size";
            public static final String no = "no";
            public static final String type = "type";
        }
    }

    //1.1.14.	美食外送下订单
    public static class HIF_SubmitFoodOrder{
        public static  String address = WEB_ADDRESS + "rest/order";

        public class params{

            /*
            memberid	数字	必须	会员id
            shopsId	数字	必须	商家id
            time	日期格式字符	不必须	下单时间。
            username	字符	必须	收货人
            phone	字符	必须	收货人电话
            address	字符	必须	收货地址
            gettotime	字符	不必须	选定送货
            goods	字符	必须	订单的商品json数组
            (
            id:商品id
            amount:数量
            )，例：[{id:2, amount:1},{id:3, amount:1}]


             */
            public static final String memberid = "memberid";
            public static final String shopsId = "shopsId";
            public static final String time = "time";
            public static final String username = "username";
            public static final String phone = "phone";
            public static final String address = "address";
            public static final String gettotime = "gettotime";
            public static final String goods = "goods";
        }
    }

    //1.1.15.	水果配送下订单
    public static class HIF_SubmitFruitOrder{
        public static  String address = WEB_ADDRESS + "rest/orderFruit";

        public class params{

            /*
            memberid	数字	必须	会员id
            shopsId	数字	必须	商家id
            time	日期格式字符	不必须	下单时间。
            username	字符	必须	收货人
            phone	字符	必须	收货人电话
            address	字符	必须	收货地址
            gettotime	字符	不必须	选定送货
            goods	字符	必须	订单的商品json数组
            (
            id:商品id
            amount:数量
            )，例：[{id:2, amount:1},{id:3, amount:1}]


             */
            public static final String memberid = "memberid";
            public static final String time = "time";
            public static final String address = "address";
            public static final String username = "username";
            public static final String phone = "phone";
            public static final String gettotime = "gettotime";
            public static final String goods = "goods";
        }
    }

    //1.1.16.	我的订单列表
    public static class HIF_GetMyOrder{
        public static  String address = WEB_ADDRESS + "rest/myorders";

        public class params{

            /*
            memberid	数字	必须	会员id
            size	数字	不必须	数目，默认20条
            no	数字	不必须	分页时的第几页
            starttime	日期字符	不必须	订单查询开始时间
            endtime	日期字符	不必须	订单查询结束时间

             */
            public static final String memberid = "memberid";
            public static final String size = "size";
            public static final String no = "no";
            public static final String starttime = "starttime";
            public static final String endtime = "endtime";
        }
    }


    //1.1.16.	水果运费
    public static class HIF_GetFruitTransPrice{
        public static  String address = WEB_ADDRESS + "rest/fruitDis";

    }

    //1.1.18.	查看订单详情
    public static class HIF_GetOrderDetail{
        public static  String address = WEB_ADDRESS + "rest/orderInfo";

        public class params{
            public static final String orderId = "orderId";
        }

    }

        //1.1.19.	评论
    public static class HIF_Comment{
        public static  String address = WEB_ADDRESS + "rest/comment";

            /*
            memberid	数字	必须	会员id
            orderId	数字	必须	订单id
            comment	字符	必须	评论内容
            score	数字	不必须	评论分数（总分10分）

             */
        public class params{
            public static final String memberid = "memberid";
            public static final String orderId = "orderId";
            public static final String comment = "comment";
            public static final String score = "score";
        }

    }

}
